home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
oath.lha
/
oath
/
test
/
biadd.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1991-08-29
|
827b
|
27 lines
#include "oath/bigInteger.h"
#include <iostream.h>
main(int argc, char **argv)
{if(argc != 3)
{cout << argv[0] << " reads two bigInteger's and produces sums.\n";
cout << "Usage: " << argv[0] << " <integer> <integer>\n";
exit(1);
}
bigIntegerA X = bigIntegerA::make(argv[1]);
bigIntegerA Y = bigIntegerA::make(argv[2]);
cout << " X = " << X << endl;
cout << " Y = " << Y << endl;
cout << "(X += Y) = " << (X += Y) << endl;
cout << "(X += Y) = " << (X += Y) << endl;
cout << "(X += Y) = " << (X += Y) << endl;
cout << "(X -= Y) = " << (X -= Y) << endl;
cout << "(X -= Y) = " << (X -= Y) << endl;
cout << "(X -= Y) = " << (X -= Y) << endl;
cout << "(X -= Y) = " << (X -= Y) << endl;
cout << "(X -= Y) = " << (X -= Y) << endl;
}